package com.designpattern.observer;

/**
 * @author liyanhao
 * @Date 2023-02-17 10:22
 */
public class Test {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay mydisplay = new CurrentConditionsDisplay();
        BaiduDisplay baiduDisplay = new BaiduDisplay();
        weatherData.registerObserver(baiduDisplay);
        weatherData.registerObserver(mydisplay);
        weatherData.setMeaSureMents(11,22,33);

    }
}
